#ifndef UTILS_YE_
#define UTILS_YE_

#include <chrono>
#include <string>
#include <ctime>

using namespace std;
using namespace chrono;

//get current time:
//yyyy-mon-day hh:mm:ss
std::string getFormatTime();
std::time_t getMicroSeconds();


#include <windows.h>

typedef struct tagTHREADNAME_INFO
{
	DWORD dwType; // must be 0x1000
	LPCSTR szName; // pointer to name (in user addr space)
	DWORD dwThreadID; // thread ID (-1=caller thread)
	DWORD dwFlags; // reserved for future use, must be zero
} THREADNAME_INFO;

void SetThreadName(DWORD dwThreadID, LPCSTR szThreadName);

#endif // UTILS_YE_

